<?php
namespace app\admin\validate;

use think\Validate;

class UsedTruck extends Validate
{
    protected $rule = [
        'title'   => 'require',
        'mileage'   => 'require|number',
        'price'   => 'require|number',
        'apply_time'   => 'require',
        'past_time'   => 'require'
    ];

    protected $message = [
        'title.require'   => '请输入标题',
        'mileage.require'   => '请输入表显里程',
        'mileage.number'   => '表显里程只能填写数字',
        'price.require'   => '请输入价格',
        'price.number'   => '价格只能填写数字',
        'apply_time.require'   => '请选择上牌时间',
        'past_time.require'   => '请选择强险过期时间'
    ];
}